-- GENERATED SPELL FOR [Mountaineer Boombellow] --


function spell0_13797(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13797', 591, 1)
end

function spell1_13797(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13797', 579, 1)
end

function Sorts_13797(pUnit, Event)
local choix_sorts_13797 = math.random(0, 1)
if choix_sorts_13797 == 0 then
pUnit:RegisterEvent('spell0_13797', 1, 1)
end
if choix_sorts_13797 == 1 then
pUnit:RegisterEvent('spell1_13797', 1, 1)
end
end

function mob13797_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13797', math.random(1500, 3000), 1)
end

function mob13797_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13797_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13797_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13797, 1, 'mob13797_Action')
RegisterUnitEvent(13797, 2, 'mob13797_Leave')
RegisterUnitEvent(13797, 3, 'mob13797_Kill')
RegisterUnitEvent(13797, 4, 'mob13797_Die')
